<?php
/**
 * @Author: Wherein
 * @Date: 2021-03-15 10:19
 * @Descripttion: 
 */
function dd()
{
    $getArgs = func_get_args();
    if (in_array(end($getArgs), ['y', 'n'])) {
        $is_exit = end($getArgs);
        array_pop($getArgs);
    } else {
        $is_exit = 'n';
    }
    foreach ($getArgs as $key => $value) {
        echo '<pre>';
        var_dump($value);
    }
    if ($is_exit == 'y') {
        exit;
    }
}